package com.agrm.model.rabc.dto;

import com.agrm.model.common.dtos.BaseModel;
import com.baomidou.mybatisplus.annotation.*;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

@TableName("t_rbac_resource")
@Getter
@Setter
@EqualsAndHashCode(onlyExplicitlyIncluded = true, callSuper = false)
public class Resource extends BaseModel {
    @EqualsAndHashCode.Include
    @TableId(type = IdType.AUTO)
    private Integer id;//主键
    @TableField(condition = SqlCondition.LIKE, whereStrategy = FieldStrategy.NOT_EMPTY)
    private String name;//资源名称
    private String type;//资源类型
    private String value;//资源值描述
    private String method;//请求类型
    private String description;//备注
}
